package com.xrtn.mapper;

import com.xrtn.bean.TOrderGoodsDetail;

import java.util.List;
import java.util.Map;

public interface TOrderGoodsDetailMapper {
    int deleteByPrimaryKey(Integer relId);

    int deleteByMap(Map<String,Object> params);

    int insert(TOrderGoodsDetail record);

    int insertSelective(TOrderGoodsDetail record);

    TOrderGoodsDetail selectByPrimaryKey(Integer relId);

    List<TOrderGoodsDetail> selectByMap(Map<String,Object> params);
    List<Map<String,Object>> selectSaleList(Map<String,Object> params);
    List<Map<String,Object>> selectOrderListByMap(Map<String,Object> params);
    /**
     * 后台统计商品消耗数量
     * @return
     */
    Integer selectSumCost(Map<String,Object> params);

    int updateByPrimaryKeySelective(TOrderGoodsDetail record);

    int updateByPrimaryKey(TOrderGoodsDetail record);
}